#ifndef SETTINGSDIALOG_H
#define SETTINGSDIALOG_H

#include <QDialog>
#include <QtDebug>
#include <QSettings>
#include "settingmanage.h"

namespace Ui {
class SettingsDialog;
}

class SettingsDialog : public QDialog
{
    Q_OBJECT

public:
    explicit SettingsDialog(QWidget *parent = nullptr);
    ~SettingsDialog();

signals:
    void themeChanged(bool isDarkTheme); // 新增信号

private slots:
    void on_getFontButton_clicked();

    void on_buttonBox_accepted(); // 确定按钮

    void on_buttonBox_rejected(); // 取消按钮

private:
    Ui::SettingsDialog *ui;
    void initObject();
private:
    QSettings *settings;
    SettingManage *settingManage;
};

#endif // SETTINGSDIALOG_H
